package com.ahdms.es.exceptions;

import com.ahdms.es.bean.IAlertAble;

import java.security.GeneralSecurityException;

/**
 * @author qinxiang
 * @date 2021-04-13 8:56
 */
public class VerifyException extends GeneralSecurityException {
    protected IAlertAble alertAble;

    public VerifyException() {
    }

    public VerifyException(String msg) {
        super(msg);
    }

    public VerifyException(IAlertAble alertAble) {
        super(alertAble.getMessage());
        this.alertAble = alertAble;
    }

    public VerifyException(String message, Throwable cause) {
        super(message, cause);
    }

    public IAlertAble getAlertAble() {
        return alertAble;
    }
}
